import sys,os

#f = open(sys.argv[1]).read()
f = '''
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.
'''

print '0 1',

for c in f:
    if c=='+': print'1 add',
    if c=='-': print'1 sub',
    if c=='<': print'cycle',
    if c=='>':
        print'rcycle',
        print'dup not if',
        print'0 cycle swap',
        print'fi pop',
    if c=='.': print'dup dup output outputascii',
    if c==',':
        print'pop 0',
        print'inputascii swap',
        print'if pop swap fi pop',
    if c=='if': print'if',
    if c=='fi': print'fi',
